package com.otp.service.instance.impl;

import java.util.List;

import org.appfuse.service.impl.GenericManagerImpl;
import org.springframework.beans.factory.annotation.Autowired;

import com.otp.model.test.template.TestSection;
import com.otp.model.test.template.dao.TestSectionDao;
import com.otp.service.instance.TestSectionManager;

public class TestSectionManagerImpl extends GenericManagerImpl<TestSection,Long> implements TestSectionManager  {
	private TestSectionDao testSectionDao;
	
	@Autowired
	public void setTestSectionDao(TestSectionDao testSectionDao){
		this.dao = testSectionDao;
        this.testSectionDao = testSectionDao;
	}
	
	public List<TestSection> getTestSectionByTemplate(String templateId) {
		List<TestSection> sections = null;
		try {
			sections = testSectionDao.getTestTestSectionByTemplate(templateId);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return sections;
	}

}
